//
//  ViewController.swift
//  Test3
//
//  Created by 王冲 on 2019/1/31.
//  Copyright © 2019年 JK科技有限公司. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.title = "ViewController"
        view.backgroundColor = UIColor.yellow
        view.addSubview(label)
        
    }
    
    lazy var label:UILabel = {
        
        let label = UILabel(frame: CGRect(x: 20, y: 150, width: UIScreen.main.bounds.size.width-40, height: 50))
        label.backgroundColor = UIColor.brown
        label.text = "我是Test3"
        label.textAlignment = NSTextAlignment.center
        return label
    }()


}

